<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../../src/event-bind/index.js"></script>
</head>
<body>
  <ul id="items">
    <li>AAAA</li>
    <li>BBBB</li>
    <li>CCCC</li>
    <li>DDDD</li>
    <div>coderbin</div>
  </ul>

  <script>
    // 调用函数绑定事件
    addEventListener('#items', 'click', function(){
      // 输出标签文本
      console.log(this.innerHTML);
    }, 'li')
  </script>
</body>
</html>